<f:view
		xmlns="http://www.w3.org/1999/xhtml"
		xmlns:h="http://java.sun.com/jsf/html"
		xmlns:f="http://java.sun.com/jsf/core"
		xmlns:a4j="http://richfaces.org/a4j"
		xmlns:rich="http://richfaces.org/rich"
		xmlns:ui="http://java.sun.com/jsf/facelets"
		xmlns:itdep="http://itdep.bsuir.by/jsf"
		>
	<ui:decorate template="/facelets/template/mainTemplate.xhtml">
		<ui:define name="title">#{departmentBundle.specializationList}</ui:define>
		<ui:define name="center">
			<ui:decorate template="/facelets/template/centerTemplate.xhtml">
				<ui:define name="content">
					<h:messages/>
					<ui:decorate template="/facelets/template/scrollableTableTemplate.xhtml">
						<ui:param name="actionBean" value="#{specializationBean}"/>
						<ui:param name="idPrefix" value="specialization"/>
						<ui:define name="editPanelContext">
							<h:panelGrid columns="3">
								<h:outputText value="#{dictionaryBundle.dictionaryCode}"
											  rendered="#{not specializationBean.record.new}"/>
								<h:outputText value="#{specializationBean.record.code}"
											  rendered="#{not specializationBean.record.new}"/>
								<rich:spacer/>

								<h:outputText value="#{departmentBundle.speciality}" styleClass="requiredField"/>
								<itdep:entitySelectMenu value="#{specializationBean.record.speciality}"
														entityType="speciality" format="{i18n.fullName}"
														required="true" styleClass="sizeCopmonent"/>
								<rich:spacer/>

								<h:outputText value="#{departmentBundle.fullName}"/>
								<h:inputText value="#{specializationBean.record.translations.fullName.value}"
											 id="specializationFullName" styleClass="sizeCopmonent"/>
								<itdep:errorMessage for="specializationFullName"/>

								<h:outputText value="#{departmentBundle.shortName}"/>
								<h:inputText value="#{specializationBean.record.translations.shortName.value}"
											 id="specializationShortName" styleClass="sizeCopmonent"/>
								<itdep:errorMessage for="specializationShortName"/>

								<h:outputText value="#{departmentBundle.code}"/>
								<h:inputText value="#{specializationBean.record.specializationCoding}"
											 id="specializationCoding" styleClass="sizeCopmonent" maxlength="10"/>
								<itdep:errorMessage for="specializationCoding"/>

								<h:outputText value="#{dictionaryBundle.qualification}" styleClass="requiredField"/>
								<itdep:entitySelectMenu value="#{specializationBean.record.qualification}"
														entityType="qualification" format="{i18n.description}"
														required="true" styleClass="sizeCopmonent"/>
								<rich:spacer/>

							</h:panelGrid>
						</ui:define>

						<ui:define name="tableContext">
							<rich:column>
								<f:facet name="header"><h:outputText value="#{dictionaryBundle.id}"/></f:facet>
								<h:outputText value="#{record.id}"/>
							</rich:column>
							<rich:column>
								<f:facet name="header"><h:outputText
										value="#{dictionaryBundle.dictionaryCode}"/></f:facet>
								<h:outputText value="#{record.code}"/>
							</rich:column>
							<rich:column>
								<f:facet name="header"><h:outputText
										value="#{departmentBundle.speciality} (#{specializationBean.translationBean.locale})"/></f:facet>
								<itdep:entityOutput value="#{record.speciality}" format="{i18n.fullName}"
													locale="#{specializationBean.translationBean.locale}"/>
							</rich:column>
							<rich:column>
								<f:facet name="header"><h:outputText
										value="#{departmentBundle.shortName} (#{specializationBean.translationBean.locale})"/></f:facet>
								<itdep:entityOutput value="#{record}" format="{i18n.shortName}"
													locale="#{specializationBean.translationBean.locale}"/>
							</rich:column>
							<rich:column>
								<f:facet name="header"><h:outputText
										value="#{departmentBundle.fullName} (#{specializationBean.translationBean.locale})"/></f:facet>
								<itdep:entityOutput value="#{record}" format="{i18n.fullName}"
													locale="#{specializationBean.translationBean.locale}"/>
							</rich:column>
							<rich:column>
								<f:facet name="header"><h:outputText value="#{departmentBundle.code}"/></f:facet>
								<h:outputText value="#{record.specializationCoding}"/>
							</rich:column>
							<rich:column>
								<f:facet name="header"><h:outputText
										value="#{dictionaryBundle.qualification} (#{specializationBean.translationBean.locale})"/></f:facet>
								<itdep:entityOutput value="#{record.qualification}" format="{i18n.description}"
													locale="#{specializationBean.translationBean.locale}"/>
							</rich:column>
						</ui:define>
					</ui:decorate>
				</ui:define>
			</ui:decorate>
		</ui:define>
	</ui:decorate>
</f:view>